home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / os2 / pvm34b3.zip / pvm34b3 / pvm3 / make.bat next >
DOS Batch File  |  1997-07-22  |  4KB  |  171 lines

  1. rem
  2. rem $Id: make.bat,v 1.2 1997/06/25 19:35:41 pvmsrc Exp $
  3. rem
  4. echo off
  5. cls
  6. rem Script File for PVM for WIN32
  7. rem 06/24/1997  Markus Fischer
  8. rem
  9. :begin
  10. if "%1" == "" goto intro
  11. goto switch
  12. :intro
  13. echo This is a (small) script for (re)compiling the PVM code 
  14. echo {and,or} the examples for the WIN32 environment. For
  15. echo generic use, you must provide one of the following inputs:
  16. echo.
  17. echo make pvm        --   will recompile and reinstall the PVM code by compiling the
  18. echo                      libpvm, daemon, hoster, groupserver and console
  19. echo. 
  20. echo make example c  --   will recompile the C examples
  21. echo.
  22. echo make example f  --   will recompile the Fortran examples
  23. echo.
  24. echo make all        --   will compile the items above
  25. echo.
  26. echo make clean      --   will erase the object files
  27. echo.
  28. echo make tidy       --   will erase the object and executables
  29. echo.
  30. echo Please note that the configuration file in $(PVM_ROOT)/conf/$(PVM_ARCH).def
  31. echo should prompt to the installed Compiler and its INCLUDE and LIBRARY paths.
  32. echo Bye.
  33. goto Ende
  34. :switch
  35.  
  36. if "%1" == "pvm" goto PVM
  37. if "%1" == "all" goto PVMEX 
  38. if "%1" == "clean" goto CLEAN
  39. if "%1" == "tidy" goto TIDY
  40. if "%1" == "example" goto excheck
  41.  
  42. echo Your specification did not match. Aborting.
  43. echo Call make with no arguments for information.
  44. goto Ende
  45.  
  46. :excheck
  47. if "%2" == "c" goto CEXAMPLES
  48. if "%2" == "f" goto FEXAMPLES
  49. :PVM
  50. echo Compiling and installing library (C,Fortran), daemon, tracer, console, hoster and groupserver
  51. cd %PVM_ROOT%\src\
  52. nmake /f makefile.mak
  53. cd %PVM_ROOT%
  54. echo Compiling and installing tracer
  55. cd %PVM_ROOT%\tracer\
  56. nmake /f makefile.mak
  57. cd %PVM_ROOT%
  58. echo Compiling and installing pvm
  59. cd %PVM_ROOT%\console\
  60. nmake /f makefile.mak
  61. cd %PVM_ROOT%
  62. echo Compiling and installing hoster
  63. cd %PVM_ROOT%\hoster\
  64. nmake /f makefile.mak
  65. cd %PVM_ROOT%
  66. echo Compiling and installing pvmgs
  67. cd %PVM_ROOT%\pvmgs\
  68. nmake /f makefile.mak
  69. cd %PVM_ROOT%
  70. echo Compiling and installing libfpvm
  71. cd %PVM_ROOT%\libfpvm\
  72. nmake /f makefile.mak
  73. cd %PVM_ROOT%
  74. echo Installation complete. Set your Environvariables !!!
  75. echo More Information in Readme.win32
  76. goto ENDE
  77.  
  78. :CEXAMPLES
  79. cd %PVM_ROOT%\examples
  80. echo Building C examples
  81. nmake /f makefile.mak c-all
  82. cd %PVM_ROOT%
  83. goto Ende
  84. :FEXAMPLES
  85. echo Building Fortran examples
  86. cd %PVM_ROOT%\examples
  87. nmake /f makefile.mak f-all
  88. cd %PVM_ROOT%
  89. goto Ende
  90.  
  91. goto ENDE
  92. :PVMEX
  93. echo Compiling and installing library (C,Fortran), daemon, tracer, console, hoster and groupserver
  94. cd %PVM_ROOT%\src\
  95. nmake /f makefile.mak
  96. cd %PVM_ROOT%
  97. echo Compiling and installing tracer
  98. cd %PVM_ROOT%\tracer\
  99. nmake /f makefile.mak
  100. cd %PVM_ROOT%
  101. echo Compiling and installing pvm
  102. cd %PVM_ROOT%\console\
  103. nmake /f makefile.mak
  104. cd %PVM_ROOT%
  105. echo Compiling and installing hoster
  106. cd %PVM_ROOT%\hoster\
  107. nmake /f makefile.mak
  108. cd %PVM_ROOT%
  109. echo Compiling and installing pvmgs
  110. cd %PVM_ROOT%\pvmgs\
  111. nmake /f makefile.mak
  112. cd %PVM_ROOT%
  113. echo Compiling and installing libfpvm
  114. cd %PVM_ROOT%\libfpvm\
  115. nmake /f makefile.mak
  116. cd %PVM_ROOT%
  117. echo Compiling and installing examples
  118. cd %PVM_ROOT%\examples
  119. echo Building C examples
  120. nmake /f makefile.mak c-all
  121. cd %PVM_ROOT%
  122. echo Building Fortran examples
  123. cd %PVM_ROOT%\examples
  124. nmake /f makefile.mak f-all
  125. cd %PVM_ROOT%
  126. goto Ende
  127. echo Installation complete. Set your Environment variables !!!
  128. echo More Information in Readme.win32
  129. goto ENDE
  130. :TIDY
  131. echo Cleaning Execs and Libs ...
  132. cd %PVM_ROOT%\bin\%PVM_ARCH%\
  133. erase *.exe
  134. cd %PVM_ROOT%\console\%PVM_ARCH%\
  135. erase *.exe
  136. cd %PVM_ROOT%\tracer\%PVM_ARCH%\
  137. erase *.exe
  138. erase *.lib
  139. cd %PVM_ROOT%\lib\win32\
  140. erase *.lib
  141. erase *.exe
  142. cd %PVM_ROOT%\libfpvm\win32\
  143. erase *.lib
  144. cd %PVM_ROOT%
  145. :CLEAN
  146. echo Cleaning Objects ...
  147. cd %PVM_ROOT%\src\%PVM_ARCH%\
  148. erase *.obj
  149. echo Cleaning libfpvm objects ...
  150. cd %PVM_ROOT%\libfpvm\%PVM_ARCH%
  151. erase *.obj
  152. echo Cleaning console objects ...
  153. cd %PVM_ROOT%\console\%PVM_ARCH%
  154. erase *.obj
  155. echo Cleaning hoster objects ...
  156. cd %PVM_ROOT%\hoster\%PVM_ARCH%\
  157. erase *.obj
  158. echo Cleaning pvmgs objects ...
  159. cd %PVM_ROOT%\pvmgs\%PVM_ARCH%\
  160. erase *.obj
  161. echo Cleaning tracer objects ...
  162. cd %PVM_ROOT%\tracer\%PVM_ARCH%\
  163. erase *.obj
  164. echo Cleaning example objects ...
  165. cd %PVM_ROOT%\examples\%PVM_ARCH%\
  166. erase *.obj
  167. cd %PVM_ROOT%
  168. goto ENDE
  169.  
  170. :Ende
  171.